package spring.bean.qualifier;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class Xiaoming {
    @Bean
    @Qualifier("xiaoming")
    public User getUser4() {
        return new User("小明xiaoming", 15);
    }
}
